﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MiniOrderSystem.Data
{
    public class BaseEntity
    {
        [Key, MinLength(32), MaxLength(32), ReadOnly(true)]
        public string Id { get; set; } = Guid.NewGuid().ToString("N");
    }
}